package com.mtons.mblog.modules.repository;

import com.mtons.mblog.modules.entity.AnswerAttribute;
import com.mtons.mblog.modules.entity.AnswerResource;
import com.mtons.mblog.modules.entity.PostResource;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface AnswerResourceRepository extends JpaRepository<AnswerResource, Long>, JpaSpecificationExecutor<AnswerResource> {
    void deleteByAnswerIdAndResourceIdIn(Long answerId, List<Long> rids);

    List<AnswerResource> findByAnswerId(long answerId);

    void deleteByAnswerId(long answerId);
}
